#include "Task.hpp"

Task::Task():res_(nullptr)
{
}

void Task::exec()
{
	if (res_)
	{
		res_->set(run());
	}
}


void Task::setResult(Result* res)
{
	res_ = res;
}